import Router from 'koa-router'
import ContentController from '@/api/ContentController'

const router = new Router()

router.prefix('/content')
//获取列表
router.get('/list', ContentController.getList)
//图片上传
router.post('/upload', ContentController.uploadImg)
//发帖
router.post('/add', ContentController.addArticle)
//编辑帖子
router.post('/uparticle', ContentController.editArticle)
//收藏
router.get('/collect', ContentController.setCollect)
//置顶
router.get('/totop', ContentController.addTop)
//加精
router.get('/addtag', ContentController.addTags)

export default router
